﻿using System;
using System.Collections;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using System.Xml.Linq;
using control.Biz;
using System.Collections.Generic;

namespace TrangSucShop
{
    public partial class Default : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            newprod1.SoCot = 3;
            newprod1.Title = "New Product";
            newprod1.SoSp = 6;

            List<BizSanPham> newprods = new List<BizSanPham>();
            newprods = BizSanPham.GetNewSp();//lay ra list cac san pham moi
            newprod1.Datasource = newprods;//gang newprod cho datasource
        }
    }
}
